<?php
	require_once(PACKAGE_PATH.'classes/Doodle.php');
	require_once(PACKAGE_PATH.'classes/ReportableWrapper.php');
	require_once(PACKAGE_PATH.'classes/XMLReporter.php');
	$doodleId = isset($_REQUEST['doodleId'])?$_REQUEST['doodleId']:"0";
	$doodle = new reportableWrapper(Doodle::findById($doodleId), 'doodle');
	$xml = new XMLReporter();
	echo($doodle->report($xml));
?>